package com.sun.temp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sun.temp.bean.WeightBean1;
import com.sun.temp.bean.WeightBean2;
import com.sun.temp.mapper.mapper1.WeightDao1;
import com.sun.temp.mapper.mapper2.WeightDao2;
import com.sun.temp.service.WeightService1;
import com.sun.temp.service.WeightService2;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * $ {description}
 * </p>
 *
 * @author: Mr.Wang
 * @create: 2025-08-25 15:08
 **/
@Service
@Slf4j
public class WeightService1Impl extends ServiceImpl<WeightDao1, WeightBean1> implements WeightService1 {

    @Resource
    private WeightDao1 weightDao;
    @Override
    public WeightBean1 queryWeightByGrade(String grade) {
        return this.baseMapper.queryWeightByGrade(grade);
    }

    @Override
    public boolean saveWeight(WeightBean1 weight) {
        this.baseMapper.insert(weight);
        return true;
    }
}
